<md-content layout="row" layout-fill >
    <md-sidenav class="md-sidenav-left" md-component-id="left"
                md-is-locked-open="$mdMedia('gt-md')" md-whiteframe="1">
        <md-toolbar class="md-primaty">
            <h1 class="md-toolbar-tools">导航</h1>
        </md-toolbar>
        <md-content layout-padding>
            <md-list>
                <md-list-item ng-click="home()" >
                    <img src="./src/images/menu.png">&nbsp;&nbsp;药品分类
                </md-list-item>
                <md-list-item ng-click="searchDrug()" >
                    <img src="./src/images/search.png">&nbsp;&nbsp;药品搜索
                </md-list-item>
                <md-list-item ng-click="pharmacyInfo()" >
                    <img src="./src/images/yd.png">&nbsp;&nbsp;药店信息
                </md-list-item>
                <md-list-item ng-click="shoppingCart()" >
                    <img src="./src/images/购物车left.png">&nbsp;&nbsp;&nbsp;购 物 车
                </md-list-item>
                <md-list-item ng-click="orderList()">
                    <img src="./src/images/order.png">&nbsp;&nbsp;我的订单
                </md-list-item>
                <md-list-item ng-click="personInfo()" ng-if="username">
                    <img src="./src/images/person.png">&nbsp;&nbsp;个人信息
                </md-list-item>
                <md-list-item ng-click="login()" ng-if="!username">
                    <img src="./src/images/logout.png">&nbsp;&nbsp;登录/注册
                </md-list-item>
                <md-list-item ng-click="logout()" ng-if="username">
                    <img src="./src/images/logout.png">&nbsp;&nbsp;退出登录
                </md-list-item>
            </md-list>
        </md-content>
    </md-sidenav>
    <md-content layout-fill layout="column" >
        <xx-toolbar></xx-toolbar>
        <ui-view style="padding-left: 3%;padding-right: 3%"></ui-view>
    </md-content>
</md-content>

